package Aop2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext context =  new AnnotationConfigApplicationContext(SpringConfig.class);
        UserService userService = context.getBean(UserService.class);
        userService.addUser();
        System.out.println("****************");
        userService.deleteUser();
        System.out.println("****************");
        userService.updateUser();
        System.out.println("****************");
        userService.queryUser();
    }
}